package praktikumid.w06.p3;

public class Car extends Vehicle {
	public Car(String registrationNumber, int numberOfDoors) {
		super(registrationNumber);
		this.numberOfDoors = numberOfDoors;
	}
	
	public Car(String registrationNumber) {
		super(registrationNumber);
		this.numberOfDoors = 4;
	}

	private int numberOfDoors;

	/**
	 * @return the numberOfDoors
	 */
	public int getNumberOfDoors() {
		return numberOfDoors;
	}

	/**
	 * @param numberOfDoors the numberOfDoors to set
	 */
	public void setNumberOfDoors(int numberOfDoors) {
		this.numberOfDoors = numberOfDoors;
	}
}
